package com.lkd.controller;


import com.lkd.entity.Business;
import com.lkd.service.BusinessService;
import com.lkd.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 商圈表 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-08-20
 */
@RestController
@RequestMapping("/api/vm-service/businessType")
public class BusinessController {

    @Autowired
    private BusinessService businessService;

    //查询商圈列表
    @GetMapping
    public Result getAll(){
        List<Business> list = businessService.list();
        return Result.success(list);
    }

}
